package com.xnfh.home.viewmodel

import com.xnfh.framework.base.BaseViewModel
import com.xnfh.framework.bean.ProductIntroduce
import com.xnfh.framework.bean.RespStateData

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2024/1/8 17:43
 * @UpdateUser: ziheng
 * @UpdateDate: 2024/1/8 17:43
 * @UpdateRemark: 更新说明
 */
class ProductIntroduceViewModel: BaseViewModel() {

    private val viewModelRes = ProductIntroduceViewModelRes()

    val productList = RespStateData<ProductIntroduce>()

    fun requestProductList(page: Int,productName: String?,productType: String?) = launch {
        viewModelRes.requestProductList(page,productName,productType,productList)
    }

}